import request from '@/utils/request'

// 查询餐馆评论图片列表
export function listResreimg(query) {
  return request({
    url: '/system/resreimg/list',
    method: 'get',
    params: query
  })
}

// 查询餐馆评论图片详细
export function getResreimg(imgId) {
  return request({
    url: '/system/resreimg/' + imgId,
    method: 'get'
  })
}

// 新增餐馆评论图片
export function addResreimg(data) {
  return request({
    url: '/system/resreimg',
    method: 'post',
    data: data
  })
}

// 修改餐馆评论图片
export function updateResreimg(data) {
  return request({
    url: '/system/resreimg',
    method: 'put',
    data: data
  })
}

// 删除餐馆评论图片
export function delResreimg(imgId) {
  return request({
    url: '/system/resreimg/' + imgId,
    method: 'delete'
  })
}
